package com.ruoyi.equip.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.SelectEntity;
import com.ruoyi.equip.domain.EquipProduct;
import com.ruoyi.equip.domain.entity.table.ProductTableEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-04-18
 */
@Mapper
public interface EquipProductMapper extends BaseMapper<EquipProduct> {

    List<EquipProduct> selectAll(@Param("equipProduct") EquipProduct equipProduct);



    List<SelectEntity> selectList();

    List<ProductTableEntity> selectExportData(@Param("productIds") List<Long> productIds);

    String selectProductKey(String id);

    EquipProduct selectKeyName(String id);

    /**
     * 获取产品存活时长
     * @param productKey
     * @return
     */
    int getAliveTime(String productKey);
}
